package com.PVZ.model.bullet;

import com.PVZ.model.Entity;
import com.PVZ.model.emuns.BulletType;
import com.PVZ.model.emuns.MoveType;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.awt.*;
import java.util.Objects;

/**
 * Created by @Author: kabuda on @Date: 2021/5/18 21:19
 */
@Getter
@Setter
@NoArgsConstructor
public class Bullet extends Entity {

    private int attackNum = 1;

    private int damage = 5;

    private BulletType bulletType;

    public Bullet(Point point,MoveType moveType,BulletType bulletType) {
        super(point,moveType);
        this.bulletType = bulletType;
        //子弹破碎后保留时间5回合
    }

    @Override
    public void setAnime() {

    }

    public Bullet(Point point, MoveType moveType) {
        super(point,moveType);
        //子弹破碎后保留时间5回合
    }
    @Override
    public boolean equals(Object o) {
        return super.equals(o);
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), anime);
    }
}
